package com.fastCms.business.mall.pojo.vo;

import com.fastCms.business.frame.config.BigDecimalValueFilter;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 公共表结构模版
 * </p>
 *
 * @author lsquan
 * @since 2019-05-27
 */
@ApiModel(value = "StoreVO对象", description = "门店信息表")
@Data
public class StoreVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "组织编码")
    private String organizeCode;

    @ApiModelProperty(value = "门店名称")
    private String storeName;

    @ApiModelProperty(value = "门店品牌")
    private String storeBrand;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "门店区域IDs")
    private String areaIds;

    @ApiModelProperty(value = "门店区域名称")
    private String areaName;

    @ApiModelProperty(value = "门店地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "门店类型1-自营2-合作商店")
    private Integer storeType;

    @ApiModelProperty(value = "开通商业功能范围，数组", example = "[STORE_SHEET,STORE_OFFLINE]")
    private String functionScope;

    @ApiModelProperty(value = "是否展示")
    private Integer isShow;

    @ApiModelProperty(value = "门店LOGO")
    private String logo;

    @ApiModelProperty(value = "门店主图")
    private String mainImageUrl;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "营业开始时间")
    @DateTimeFormat(pattern = "HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
    private Date workStartTime;

    @ApiModelProperty(value = "营业结束时间")
    @DateTimeFormat(pattern = "HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm")
    private Date workEndTime;

    @ApiModelProperty(value = "优惠买单每满X元", example = "1")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal offlineUnitAmount;

    @ApiModelProperty(value = "优惠买单立减10元", example = "0.01")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal offlineDiscountAmount;

    @ApiModelProperty(value = "优惠买单折扣:1-开启2-关闭", example = "1")
    private int isOfflineDiscount;

    @ApiModelProperty(value = "微信二维码", example = "微信图片")
    private String wxCodeImg;

    @ApiModelProperty(value = "门店状态(1-正常2-禁用)")
    private Integer status;


}
